#!/usr/bin/env python3
# -*- coding=utf-8 -*-
# 题目：找到年龄最大的人，并输出。请找出程序中有什么问题。


def f1():
    person = {"li": 18, "wang": 50, "zhang": 20, "sun": 22}
    na = ""
    no = 0
    for x, y in person.items():
        if no < y:
            na, no = x, y
    print(na, no)


f = f1
if __name__ == "__main__":
    f()
